package com.yyou.chat_gpt.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.util.Date;

/**
 * <p>
 * 聊天记录信息
 * </p>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder(toBuilder = true)
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "chat_history", excludeProperty = {"partyId"})
public class ChatHistoryInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    private String userId;

    /**
     * 消息类型
     */
    private String type;

    /**
     * 聊天记录
     */
    private String msg;

    /**
     * 是否用户消息
     */
    private boolean my;

    /**
     * 有效状态. 1：有效；0：无效
     */
    private Integer validStatus;

    /**
     * 记录时间
     */
    private String msgTime;
}
